<template>
  <el-button
    ><span
      v-text="icon"
      class="iconfont"></span
    >{{ name }}</el-button
  >
</template>

<script lang="ts" setup>
defineProps<{
  //button名字
  name: string;
  //icon
  icon: string;
}>();
</script>

<style lang="less" scoped>
.el-button {
  .iconfont {
    margin-right: 5px;
  }
  background-color: #e1e1e1;
  color: #334155;
  border-radius: 18px;
  font-size: 14px;
  width: 120px;
  height: 34px;
  &:active {
    background-color: rgba(225, 225, 225, 0.8);
  }
  &:hover {
    background-color: rgba(225, 225, 225, 0.8);
  }
}
</style>
